
#include "public.h"

static uchar    Ts_Enable_Flag ; 

void Ts_Scan_Use_State_Set( TS_USE_STATE Flag)
{
	Ts_Enable_Flag=Flag;

}


#if D_TOUCHKEY_AD


#pragma section (fcode)

void Touch_Key_Scan(void)
{
	if(Main_Power()==0)	
	{
		return;
	}
#if NAVI_FUNCTION

	if(Navi_Menu_InFront())
	{
		if((BT_INFO.bit.ConnectedStatus == PHONE_CONNECTED&&BT_INFO.mstate ==BT_CONNECT_PHONE)
		    ||Get_Standby_Mode
#ifdef D_NAVI_BT_DONT_SW
		    ||1==Bt_Audio_Gate
#endif
		    )
		{
			TOUCH_SEL_MCU;
		}
		else
			TOUCH_SEL_NAVI;
	}
	else
#endif
		TOUCH_SEL_MCU;
	return;

}


#endif

#pragma section ()
